Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add filtering to Inspector tool #636

Merged
merged 3 commits into from
Aug 18, 2023

Conversation

filipecabaco
Copy link
Contributor

What kind of change does this PR introduce?

Adds a filter field to the Inspector tool to set filters when creating a new connection.

Additional context

Screen.Recording.2023-08-18.at.00.17.09.mov

Adds a filter field to the Inspector tool to set filters when creating a new connection
@vercel
Copy link

vercel bot commented Aug 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
realtime-demo ⬜️ Ignored (Inspect) Visit Preview Aug 18, 2023 10:07am

@notion-workspace
Copy link

@chasers
Copy link
Contributor

chasers commented Aug 18, 2023

Actually ... couple other things to check:

  • the filter field gets saved to, and pulled from local storage like the other fields
  • it gets pushed to the url params like the other fields (I think this might happen automatically)

@filipecabaco
Copy link
Contributor Author

filipecabaco commented Aug 18, 2023

Good calls! Those were not working as expected, made the changes and now:

Generated URL on share which contains the filter param:

http://localhost:4000/inspector/new?bearer=&channel=room_a&filter=id%3Deq.3&host=https://hpczcjzvitcibjtgcems.supabase.co&log_level=info&schema=public&table=*&token=<token>

And local storage of filter

local_storage_example.mov

@filipecabaco
Copy link
Contributor Author

Screenshot 2023-08-18 at 11 06 32

Adjusted filter input information with a placeholder and a better subtitle

@chasers
Copy link
Contributor

chasers commented Aug 18, 2023

Rad, lgtm!

@filipecabaco filipecabaco merged commit f301abe into main Aug 18, 2023
3 checks passed
@filipecabaco filipecabaco deleted the feat/realtime-inspect-filtering branch August 18, 2023 15:28
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.20.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

filipecabaco added a commit that referenced this pull request Aug 21, 2023
* fix: Fixes flaky test on SubscriptionsCheckerTest (#635)

Tests for our SubscriptionChecker were flaky because of the way we checked the elements in the array.

* feat: Add filtering to Inspector tool (#636)

* feat: Add filtering to Inspector tool

Adds a filter field to the Inspector tool to set filters when creating a new connection

* fix: Sets proper Realtime semver value (#637)

* fix: handle null access token (#638)

* fix: handle nil access token

* fix: info log unexpected messages from client an clean up

* fix: bump version

---------

Co-authored-by: Chase Granberry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants